import React from 'react';


var Label = React.createClass({

    getValue:function(){
        return this.props.defaultValue;
    },
    render:function(){
        var icon = null;
        if(this.props.icon){
            icon = this.props.icon;
        }
        return(
            <div className="FormComponent">
                <span className="form_control_name">{this.props.title}</span>
                <div className="form_control">
                    {icon}
                   <span style={{width:"80%",height:"40px",lineHeight:"40px"}}> {this.props.defaultValue}</span>
                </div>
            </div>
        )
    }
})

module.exports = Label;